package com.hp.gxw.u8;

public class EFWebServiceSoapProxy implements EFWebServiceSoap {
	private String _endpoint = null;
	private EFWebServiceSoap eFWebServiceSoap = null;

	public EFWebServiceSoapProxy() {
		_initEFWebServiceSoapProxy();
	}

	public EFWebServiceSoapProxy(String endpoint) {
		_endpoint = endpoint;
		_initEFWebServiceSoapProxy();
	}

	private void _initEFWebServiceSoapProxy() {
		try {
			eFWebServiceSoap = (new EFWebServiceLocator()).getEFWebServiceSoap();
			if (eFWebServiceSoap != null) {
				if (_endpoint != null)
					((javax.xml.rpc.Stub) eFWebServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address",
							_endpoint);
				else
					_endpoint = (String) ((javax.xml.rpc.Stub) eFWebServiceSoap)
							._getProperty("javax.xml.rpc.service.endpoint.address");
			}

		} catch (javax.xml.rpc.ServiceException serviceException) {
		}
	}

	public String getEndpoint() {
		return _endpoint;
	}

	public void setEndpoint(String endpoint) {
		_endpoint = endpoint;
		if (eFWebServiceSoap != null)
			((javax.xml.rpc.Stub) eFWebServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

	}

	public EFWebServiceSoap getEFWebServiceSoap() {
		if (eFWebServiceSoap == null)
			_initEFWebServiceSoapProxy();
		return eFWebServiceSoap;
	}

	public java.lang.String EFHelloWorld() throws java.rmi.RemoteException {
		if (eFWebServiceSoap == null)
			_initEFWebServiceSoapProxy();
		return eFWebServiceSoap.EFHelloWorld();
	}

	public java.lang.String EFWebJS(java.lang.String context) throws java.rmi.RemoteException {
		if (eFWebServiceSoap == null)
			_initEFWebServiceSoapProxy();
		return eFWebServiceSoap.EFWebJS(context);
	}

	public U8WebXMLResponseU8WebXMLResult u8WebXML(java.lang.String context) throws java.rmi.RemoteException {
		if (eFWebServiceSoap == null)
			_initEFWebServiceSoapProxy();
		return eFWebServiceSoap.u8WebXML(context);
	}

}